package com.laf.mobile.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@ApiModel(value = "修改密码参数")
public class UpdatePwdDTO {

    @ApiModelProperty(value = "旧密码")
    @NotBlank(message = "旧密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度为6-20位")
    private String oldPwd;

    @ApiModelProperty(value = "新密码")
    @NotBlank(message = "新密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度为6-20位")
    private String newPwd;

}
